<div class="banner">
	<?php $banner = cc_get_banner(); ?>
	<div class="banner_content">
		<?php if( count($banner) > 0 ){ ?>
				<?php foreach($banner as $key => $val) { ?>
						<a href="<?php echo $val['imageurl']; ?>" target="<?php echo $val['targeturl'];?>">
							<img src="<?php echo $val['imagebig'];?>">
						</a>	
				<?php } ?>
		<?php } ?>
	</div>
	<div class="banner_cat" id="nav_banner_cat">
		<?php if( count($banner) > 0 ){ ?>
				<?php $str_imagelist = ''; ?>
				<?php foreach($banner as $key => $val) { ?>
						<?php $str_imagelist .= '<a href="'.$val['imageurl'].'" target="'.$val['targeturl'].'"><img src="'.$val['imagesmall'].'"></a>' ;?>
				<?php } ?>
				<?php echo $str_imagelist; ?>
		<?php } ?>
	</div>
</div>